﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:Tools="clr-namespace:NuGet.Client.VisualStudio.UI"
                    xmlns:resx="clr-namespace:NuGet.Client.VisualStudio.UI.Resources"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <BitmapImage x:Key="BitmapImage_DefaultIcon" UriSource="../Resources/packageicon.png" />

    <Tools:PackageStatusToInstallImageVisibilityConverter x:Key="PackageStatusToInstallImageVis" />
    <Tools:PackageStatusToUpdateImageVisibilityConverter x:Key="PackageStatusToUpdateImageConverter" />
    <Tools:IconUrlToVisibilityConverter x:Key="IconUrlToVisibilityConverter" />

    <Tools:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
    <Tools:EnumerableToVisibilityConverter Inverted="true" x:Key="EmptyEnumerableToVisibilityConverter" />
    <Tools:EnumerableToVisibilityConverter x:Key="EnumerableToVisibilityConverter" />
    <Tools:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    <Tools:BooleanToVisibilityConverter Inverted="True" x:Key="InvertedBooleanToVisibilityConverter" />
    <Tools:DownloadCountToVisibilityConverter x:Key="DownloadCountToVisibilityConverter" />
    <Tools:FontSizeConverter Scale="122" x:Key="Font122PercentSizeConverter" />
    <Tools:FontSizeConverter Scale="155" x:Key="Font155PercentSizeConverter" />

    <DataTemplate DataType="{x:Type Tools:UiPackageDependency}">
        <TextBlock Text="{Binding}" />
    </DataTemplate>

    <DataTemplate DataType="{x:Type Tools:UiSearchResultPackage}">
        <Tools:PackageItemControl DataContext="{Binding}" />
    </DataTemplate>

    <Style TargetType="{x:Type Hyperlink}" x:Key="HyperlinkStyle">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static resx:Brushes.ControlLinkTextKey}}" />

        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{DynamicResource {x:Static resx:Brushes.ControlLinkTextHoverKey}}" />
            </Trigger>

            <Trigger Property="IsMouseOver" Value="False">
                <Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
            </Trigger>

            <Trigger Property="NavigateUri" Value="{x:Null}">
                <Setter Property="Foreground" Value="{DynamicResource {x:Static resx:Brushes.WindowTextKey}}" />
                <Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
                <Setter Property="IsEnabled" Value="False" />
            </Trigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>